package com.fy.mmcro.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class MyController {
    @RequestMapping("list")
    public List<String> list(){
        ArrayList<String> list =new ArrayList<>();
        list.add("张三");
        list.add("张三2");
        list.add("张三3");
        list.add("张三4");
        return list;
    }
}
